import Vue from "vue";

import App from "./App.vue";

import Home from "./components/Home.vue";
import Cart from "./components/Cart.vue";
import Pay from "./components/Pay.vue";
import WxPay from "./components/WxPay.vue";
import TsInput from "./components/TsInput.vue";
import TsEmail from "./components/TsEmail.vue";
import TsCard from "./components/TsCard.vue";

// 注册组件
// <Home></Home> = <Home />
Vue.component("Home", Home);
// <Cart></Cart> = <Cart />
Vue.component("Cart", Cart);
Vue.component("Pay", Pay);
Vue.component("WxPay", WxPay);
Vue.component("TsInput", TsInput);
Vue.component("TsEmail", TsEmail);
Vue.component("TsCard", TsCard);

new Vue({
  render: (h) => h(App),
}).$mount("#app");

// new Vue({
//   el: "#app",
//   render: (h) => h(App),
// });
